<!DOCTYPE html>
<html lang="en">

<head>
    <meta charset="UTF-8">
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>浮动练习</title>
    <style>
        .x{
            width: 1200px;
            height: 460px;
            margin:  100px auto;
            background-color: pink;
        }
        .left{
            width: 230px;
            height: 460px;
            background-color: skyblue;
            float: left;
        }
        .right{
            width: 900px;
            height: 460px;
            background-color: green;
            float: left;
        }
    </style>
</head>

<body>
    <div class="x">
        <div class="left">
        </div>
        <div class="right">
        </div>
    </div>
</body>

</html>